JavaScript

tbiObj.logout Method

Syntax

tbiObj.logout(targetURL);

Arguments

targetURLstring

The URL of the page where the browser should redirect.

Description

Logs out the current user and redirects them to another page.

Discussion

The tbiObj.logout() method logs the current user out of the Alpha Security Framework and redirects them to another page.

For example, assume that your application has a login page called "login.a5w". After the user logs in, the browser is redirected to the page that shows your TabbedUI component. One of the buttons shown in the TabbedUI is a logout button with the following code:

tbiObj.logout('login.a5w');

When the user clicks the button, they are logged out and redirected to the "login.a5w" page.